<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<!DOCTYPE html>
<html>
<head>
<jsp:include page="/WEB-INF/pages/include/head.jsp"></jsp:include>
<link href="/css/reg.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="/js/reg.js"></script>
<script type="text/javascript" src="/js/validate-code.js"></script>
</head>
<body>
	<form id="reg-form" method="post" action="/user/regUser">
		<h3 style="margin-left: 120px;">用户注册</h3>
		<div class="reg-form-line">
			<span class="regLabel">用户　名</span>
			<span class="regInput">
				<input type="text" name="username" value="${username }"
					placeholder="请输入用户名[4-16]">
			</span>
			<span class="regMsg">${username_info }</span>
		</div>
		<div class="reg-form-line">
			<span class="regLabel">邮　　箱</span>
			<span class="regInput">
				<input type="email" name="email" value="${email }"
					placeholder="请输入邮箱">
			</span>
			<span class="regMsg">${email_info }</span>
		</div>
		<div class="reg-form-line">
			<span class="regLabel">密　　码</span>
			<span class="regInput">
				<input type="password" name="password"
					placeholder="请输入密码[8-16]">
			</span>
			<span class="regMsg">${password_info }</span>
		</div>
		<div class="reg-form-line">
			<span class="regLabel">确认密码</span>
			<span class="regInput">
				<input type="password" name="repassword"
					placeholder="请再一次输入密码">
			</span>
			<span class="regMsg">${repassword_info }</span>
		</div>
		<div class="reg-form-line">
			<span class="regLabel">验证　码</span>
			<span class="regInput">
				<input type="text" name="code" id="validate-spcial"
					placeholder="请输入验证码" value="${code }">
				<img src="/validateCode" id="validateCode" style="border: 1px solid #bdbdbd;border-radius:5px;cursor: pointer;"
					onclick="refersh(this);"/>
				<a href="javascript:void(0);" onclick="refershImg();">看不清</a>
			</span>
			<span class="regMsg">${code_info }</span>
		</div>
		<div class="reg-form-line">
			<span class="regInput">
				<span class="checkbox" style="margin-left: 70px;">
					<input type="checkbox" name="agree" required >
					<span style="color: gray;">我已认真阅读并同意梦网工具本相关协议</span>　<a href="#">阅读协议</a>
				</span>
			</span>
			<span class="regMsg"></span>
		</div>
		<div class="reg-form-line">
			<span class="regLabel">　　　　</span>
			<span class="regInput">
				<button type="submit" class="btn btn-primary">　注　册　</button>
				<a href="/" class="btn btn-success">已有账号请登陆</a>
			</span>
			<span class="regMsg"></span>
		</div>
	</form>
	<jsp:include page="/WEB-INF/pages/include/copyright.jsp"></jsp:include>
</body>
</html>
